<template>
  <div class="wodesc">
    <Header title="收藏列表">
      <template v-slot:left>
        <span @click="goto()">&lt;</span>
      </template>
      <template v-slot:right>
        <span>
          <img src="../../../assets/qxsc.png" alt @click="empty()" />
        </span>
      </template>
    </Header>
    <List></List>
  </div>
</template>

<script>
import { mapMutations, mapState } from "vuex";

import Header from "../../../components/Header";
import List from "./List";
export default {
  components: {
    Header,
    List
  },
  methods: {
    /* 点击-清空收藏店铺数据 */
    ...mapMutations(["empty"]),
    /* 点击返回 */
    goto() {
      this.$router.push({
        name: "wode"
      });
    }
  }
};
</script>

<style>
</style>